import {useEffect} from 'react';

const UseTitle = (title) => {
    useEffect(() => {
        document.title = title;
    }, [])
}

const Demo = () => {
    UseTitle('xiaozhao');
}

export default Demo;